export const DagData = {
  "cells": [
    {
      "shape": "edge",
      "attrs": {
        "line": {
          "stroke": "#767676",
          "strokeWidth": 1,
          "targetMarker": {
            "name": "classic",
            "size": 8
          }
        }
      },
      "id": "b37ac3d9-4af8-4914-9f6e-13b77edf0073",
      "connector": {
        "name": "curve"
      },
      "defaultLabel": {
        "markup": [
          {
            "tagName": "rect",
            "selector": "body"
          },
          {
            "tagName": "text",
            "selector": "label"
          }
        ],
        "attrs": {
          "label": {
            "fontSize": 14,
            "textAnchor": "middle",
            "textVerticalAnchor": "middle",
            "pointerEvents": "none",
            "fill": "#767676"
          }
        },
        "position": {
          "distance": 0.5
        }
      },
      "router": {
        "name": "manhattan"
      },
      "zIndex": 0,
      "source": {
        "cell": "506820e5-fc04-4fa3-8c8f-93ab42406175",
        "port": "ce3fb060c868496c6b0a0981191a20f6"
      },
      "target": {
        "cell": "84f28640-c1ea-4482-8eb0-31c10365672c",
        "port": "ceb5a2ec7d6df9ed9a7428bd44ebee02"
      }
    },
    {
      "shape": "edge",
      "attrs": {
        "line": {
          "stroke": "#767676",
          "strokeWidth": 1,
          "targetMarker": {
            "name": "classic",
            "size": 8
          }
        }
      },
      "id": "8c6a0245-fd1c-43c3-a3ad-a71fbf8e870d",
      "connector": {
        "name": "curve"
      },
      "defaultLabel": {
        "markup": [
          {
            "tagName": "rect",
            "selector": "body"
          },
          {
            "tagName": "text",
            "selector": "label"
          }
        ],
        "attrs": {
          "label": {
            "fontSize": 14,
            "textAnchor": "middle",
            "textVerticalAnchor": "middle",
            "pointerEvents": "none",
            "fill": "#767676"
          }
        },
        "position": {
          "distance": 0.5
        }
      },
      "router": {
        "name": "manhattan"
      },
      "zIndex": 0,
      "source": {
        "cell": "84f28640-c1ea-4482-8eb0-31c10365672c",
        "port": "70b08f7ced96c095d5c1ad34f5aa83d8"
      },
      "target": {
        "cell": "310e8f47-7a69-455a-a17a-763b56344ebb",
        "port": "22113db530dc6a4269bbc56d12002c11"
      }
    },
    {
      "position": {
        "x": 170,
        "y": 460
      },
      "size": {
        "width": 140,
        "height": 40
      },
      "shape": "write_data63",
      "value": "write_data63",
      "id": "310e8f47-7a69-455a-a17a-763b56344ebb",
      "data": {
        "id": "62dd13c4cb410c521d8f1f75614c8cdd",
        "category": "write_data",
        "name": "生成 pickle 文件",
        "ports": {
          "in": [
            {
              "id": "22113db530dc6a4269bbc56d12002c11",
              "moduleId": "62dd13c4cb410c521d8f1f75614c8cdd",
              "optional": false,
              "type": "Model",
              "description": "Input:Model"
            }
          ],
          "out": []
        },
        "isOfficial": true,
        "language": "python",
        "currentVersion": "46be3fbc8d735651a06ab774e4d8cd38",
        "createUserId": "1",
        "createDate": "2022-06-22 14:46:19",
        "updateDate": "2022-06-22 14:46:19",
        "versions": [
          {
            "id": "46be3fbc8d735651a06ab774e4d8cd38",
            "moduleId": "62dd13c4cb410c521d8f1f75614c8cdd",
            "description": "本组件可将模型对象保存为 .pkl 文件至文件树中。",
            "code": "import pickle\n\nwith open('{{path}}{{name}}','wb') as fw:\n    pickle.dump(in_1,fw)\n    \nprint('pickle 文件已成功保存至相应文件路径👏👏👏    ')",
            "paramList": [
              {
                "id": "992f0439b5c550cd0acab55e98cea309",
                "moduleVersionId": "46be3fbc8d735651a06ab774e4d8cd38",
                "name": "path",
                "multiple": false,
                "optional": false,
                "displayName": "保存路径",
                "type": "text",
                "defaultValue": "/home/mw/project/",
                "options": [],
                "validation": {
                  "id": "5e039d1859fe12305ef8dca18d645f09",
                  "moduleParamId": "992f0439b5c550cd0acab55e98cea309",
                  "subType": "float",
                  "columnType": "object"
                },
                "disableCondition": {
                  "id": "29e413078b88fb77cf64caedf74f1a97",
                  "moduleParamId": "992f0439b5c550cd0acab55e98cea309",
                  "type": "0"
                }
              },
              {
                "id": "e979de8312c7d3a5c56be0d361908473",
                "moduleVersionId": "46be3fbc8d735651a06ab774e4d8cd38",
                "name": "name",
                "multiple": false,
                "optional": false,
                "displayName": "文件名",
                "type": "text",
                "defaultValue": "model.pkl",
                "options": [],
                "validation": {
                  "id": "e22dc78d8b1d914ccd03c7a6c7369b43",
                  "moduleParamId": "e979de8312c7d3a5c56be0d361908473",
                  "subType": "float",
                  "columnType": "object"
                },
                "disableCondition": {
                  "id": "f3f879a2ab3500e491193fbc630cc999",
                  "moduleParamId": "e979de8312c7d3a5c56be0d361908473",
                  "type": "0"
                }
              }
            ],
            "commitInfo": {
              "id": "6604524bce489cdbbafb90afc3df4214",
              "moduleVersionId": "46be3fbc8d735651a06ab774e4d8cd38",
              "message": "Init Commit",
              "date": "2022-06-22 14:46:19",
              "committer": "1"
            }
          }
        ],
        "description": "",
        "data": {
          "id": "62dd13c4cb410c521d8f1f75614c8cdd",
          "category": "write_data",
          "name": "生成 pickle 文件",
          "ports": {
            "in": [
              {
                "id": "22113db530dc6a4269bbc56d12002c11",
                "moduleId": "62dd13c4cb410c521d8f1f75614c8cdd",
                "optional": false,
                "type": "Model",
                "description": "Input:Model"
              }
            ],
            "out": []
          },
          "isOfficial": true,
          "language": "python",
          "currentVersion": "46be3fbc8d735651a06ab774e4d8cd38",
          "createUserId": "1",
          "createDate": "2022-06-22 14:46:19",
          "updateDate": "2022-06-22 14:46:19",
          "versions": [
            {
              "id": "46be3fbc8d735651a06ab774e4d8cd38",
              "moduleId": "62dd13c4cb410c521d8f1f75614c8cdd",
              "description": "本组件可将模型对象保存为 .pkl 文件至文件树中。",
              "code": "import pickle\n\nwith open('{{path}}{{name}}','wb') as fw:\n    pickle.dump(in_1,fw)\n    \nprint('pickle 文件已成功保存至相应文件路径👏👏👏    ')",
              "paramList": [
                {
                  "id": "992f0439b5c550cd0acab55e98cea309",
                  "moduleVersionId": "46be3fbc8d735651a06ab774e4d8cd38",
                  "name": "path",
                  "multiple": false,
                  "optional": false,
                  "displayName": "保存路径",
                  "type": "text",
                  "defaultValue": "/home/mw/project/",
                  "options": [],
                  "validation": {
                    "id": "5e039d1859fe12305ef8dca18d645f09",
                    "moduleParamId": "992f0439b5c550cd0acab55e98cea309",
                    "subType": "float",
                    "columnType": "object"
                  },
                  "disableCondition": {
                    "id": "29e413078b88fb77cf64caedf74f1a97",
                    "moduleParamId": "992f0439b5c550cd0acab55e98cea309",
                    "type": "0"
                  }
                },
                {
                  "id": "e979de8312c7d3a5c56be0d361908473",
                  "moduleVersionId": "46be3fbc8d735651a06ab774e4d8cd38",
                  "name": "name",
                  "multiple": false,
                  "optional": false,
                  "displayName": "文件名",
                  "type": "text",
                  "defaultValue": "model.pkl",
                  "options": [],
                  "validation": {
                    "id": "e22dc78d8b1d914ccd03c7a6c7369b43",
                    "moduleParamId": "e979de8312c7d3a5c56be0d361908473",
                    "subType": "float",
                    "columnType": "object"
                  },
                  "disableCondition": {
                    "id": "f3f879a2ab3500e491193fbc630cc999",
                    "moduleParamId": "e979de8312c7d3a5c56be0d361908473",
                    "type": "0"
                  }
                }
              ],
              "commitInfo": {
                "id": "6604524bce489cdbbafb90afc3df4214",
                "moduleVersionId": "46be3fbc8d735651a06ab774e4d8cd38",
                "message": "Init Commit",
                "date": "2022-06-22 14:46:19",
                "committer": "1"
              }
            }
          ]
        },
        "triggerType": null,
        "targetUnit": null,
        "statusUnit": null,
        "targetArea": null,
        "situationTime": null,
        "countdown": null,
        "selectTime": null
      },
      "myId": "62dd13c4cb410c521d8f1f75614c8cdd",
      "ports": {
        "groups": {
          "in": {
            "position": "top",
            "attrs": {
              "circle": {
                "r": 6,
                "magnet": "passive",
                "fill": "#C0C4CC",
                "fillOpacity": "0.15",
                "stroke": "#C0C4CC",
                "strokeOpacity": "0.6",
                "strokeWidth": 1,
                "style": {
                  "visibility": "visible"
                }
              }
            }
          },
          "out": {
            "position": "bottom",
            "attrs": {
              "circle": {
                "r": 6,
                "magnet": true,
                "fill": "#C0C4CC",
                "fillOpacity": "0.15",
                "stroke": "#C0C4CC",
                "strokeOpacity": "0.6",
                "strokeWidth": 1,
                "style": {
                  "visibility": "visible"
                }
              }
            }
          }
        },
        "items": [
          {
            "id": "22113db530dc6a4269bbc56d12002c11",
            "moduleId": "62dd13c4cb410c521d8f1f75614c8cdd",
            "optional": false,
            "type": "Model",
            "description": "Input:Model",
            "group": "in",
            "myId": "22113db530dc6a4269bbc56d12002c11"
          }
        ]
      },
      "zIndex": 1
    },
    {
      "position": {
        "x": 270,
        "y": 320
      },
      "size": {
        "width": 140,
        "height": 40
      },
      "shape": "view_data57",
      "value": "view_data57",
      "id": "84f28640-c1ea-4482-8eb0-31c10365672c",
      "data": {
        "id": "72e2c36a6b01ba7efe570e71809b2057",
        "category": "view_data",
        "name": "相关性系数矩阵",
        "ports": {
          "in": [
            {
              "id": "ceb5a2ec7d6df9ed9a7428bd44ebee02",
              "moduleId": "72e2c36a6b01ba7efe570e71809b2057",
              "optional": false,
              "type": "DataFrame",
              "description": "Input:DataFrame"
            }
          ],
          "out": [
            {
              "id": "70b08f7ced96c095d5c1ad34f5aa83d8",
              "moduleId": "72e2c36a6b01ba7efe570e71809b2057",
              "type": "DataFrame",
              "description": "Output:DataFrame"
            }
          ]
        },
        "isOfficial": true,
        "language": "python",
        "currentVersion": "98f95541b8b8762a0460dd13956fc241",
        "createUserId": "1",
        "createDate": "2022-06-22 14:46:18",
        "updateDate": "2022-06-22 14:46:18",
        "versions": [
          {
            "id": "98f95541b8b8762a0460dd13956fc241",
            "moduleId": "72e2c36a6b01ba7efe570e71809b2057",
            "description": "对选定列两两组合，计算其相关性系数 (Pearson、Kendall、Spearman），结果为一个N*N的矩阵。",
            "code": "import pandas as pd \n\n{% if features == \":\" %}\nfeatures = in_1.columns\n{% else %}\nfeatures = \"{{features}}\".split(',')\n{% endif %}\n\nreturn [in_1[features].corr(method='{{method}}')]",
            "paramList": [
              {
                "id": "2f8cae44da68472a3689ea9960cb1b04",
                "moduleVersionId": "98f95541b8b8762a0460dd13956fc241",
                "name": "features",
                "multiple": true,
                "optional": false,
                "displayName": "特征选择",
                "description": "仅支持数值型",
                "type": "array",
                "options": [],
                "validation": {
                  "id": "0399360266a63482cdae5830cb136d5e",
                  "moduleParamId": "2f8cae44da68472a3689ea9960cb1b04",
                  "subType": "float"
                },
                "port": "in_1"
              },
              {
                "id": "8fce4f29931dd0498de20132526e8b4f",
                "moduleVersionId": "98f95541b8b8762a0460dd13956fc241",
                "name": "method",
                "multiple": false,
                "optional": false,
                "displayName": "相关性系数的计算方法",
                "description": "pearson : standard correlation coefficient；\nkendall : Kendall Tau correlation coefficient；\nspearman : Spearman rank correlation\n\n",
                "type": "select",
                "defaultValue": "pearson",
                "options": [
                  {
                    "id": "1869fd618cdc43e483bc92b5045049a1",
                    "moduleParamId": "8fce4f29931dd0498de20132526e8b4f",
                    "title": "Spearman",
                    "value": "spearman"
                  },
                  {
                    "id": "5e4d75e9965bbd18a61a4a0734591d88",
                    "moduleParamId": "8fce4f29931dd0498de20132526e8b4f",
                    "title": "Pearson",
                    "value": "pearson"
                  },
                  {
                    "id": "eb3a74d3bc63b01b302485b02bafe2b1",
                    "moduleParamId": "8fce4f29931dd0498de20132526e8b4f",
                    "title": "Kendall",
                    "value": "kendall"
                  }
                ],
                "validation": {
                  "id": "073b8cdb3203f61b49f8bc90e3a40df4",
                  "moduleParamId": "8fce4f29931dd0498de20132526e8b4f",
                  "subType": "float",
                  "columnType": "object"
                },
                "disableCondition": {
                  "id": "7e44ba5c1c84e6784f2ec34d7e6b9076",
                  "moduleParamId": "8fce4f29931dd0498de20132526e8b4f",
                  "type": "0"
                }
              }
            ],
            "commitInfo": {
              "id": "98898861c627e6e5e1a0e5a2fe473155",
              "moduleVersionId": "98f95541b8b8762a0460dd13956fc241",
              "message": "Init Commit",
              "date": "2022-06-22 14:46:19",
              "committer": "1"
            }
          }
        ],
        "description": "",
        "data": {
          "id": "72e2c36a6b01ba7efe570e71809b2057",
          "category": "view_data",
          "name": "相关性系数矩阵",
          "ports": {
            "in": [
              {
                "id": "ceb5a2ec7d6df9ed9a7428bd44ebee02",
                "moduleId": "72e2c36a6b01ba7efe570e71809b2057",
                "optional": false,
                "type": "DataFrame",
                "description": "Input:DataFrame"
              }
            ],
            "out": [
              {
                "id": "70b08f7ced96c095d5c1ad34f5aa83d8",
                "moduleId": "72e2c36a6b01ba7efe570e71809b2057",
                "type": "DataFrame",
                "description": "Output:DataFrame"
              }
            ]
          },
          "isOfficial": true,
          "language": "python",
          "currentVersion": "98f95541b8b8762a0460dd13956fc241",
          "createUserId": "1",
          "createDate": "2022-06-22 14:46:18",
          "updateDate": "2022-06-22 14:46:18",
          "versions": [
            {
              "id": "98f95541b8b8762a0460dd13956fc241",
              "moduleId": "72e2c36a6b01ba7efe570e71809b2057",
              "description": "对选定列两两组合，计算其相关性系数 (Pearson、Kendall、Spearman），结果为一个N*N的矩阵。",
              "code": "import pandas as pd \n\n{% if features == \":\" %}\nfeatures = in_1.columns\n{% else %}\nfeatures = \"{{features}}\".split(',')\n{% endif %}\n\nreturn [in_1[features].corr(method='{{method}}')]",
              "paramList": [
                {
                  "id": "2f8cae44da68472a3689ea9960cb1b04",
                  "moduleVersionId": "98f95541b8b8762a0460dd13956fc241",
                  "name": "features",
                  "multiple": true,
                  "optional": false,
                  "displayName": "特征选择",
                  "description": "仅支持数值型",
                  "type": "array",
                  "options": [],
                  "validation": {
                    "id": "0399360266a63482cdae5830cb136d5e",
                    "moduleParamId": "2f8cae44da68472a3689ea9960cb1b04",
                    "subType": "float"
                  },
                  "port": "in_1"
                },
                {
                  "id": "8fce4f29931dd0498de20132526e8b4f",
                  "moduleVersionId": "98f95541b8b8762a0460dd13956fc241",
                  "name": "method",
                  "multiple": false,
                  "optional": false,
                  "displayName": "相关性系数的计算方法",
                  "description": "pearson : standard correlation coefficient；\nkendall : Kendall Tau correlation coefficient；\nspearman : Spearman rank correlation\n\n",
                  "type": "select",
                  "defaultValue": "pearson",
                  "options": [
                    {
                      "id": "1869fd618cdc43e483bc92b5045049a1",
                      "moduleParamId": "8fce4f29931dd0498de20132526e8b4f",
                      "title": "Spearman",
                      "value": "spearman"
                    },
                    {
                      "id": "5e4d75e9965bbd18a61a4a0734591d88",
                      "moduleParamId": "8fce4f29931dd0498de20132526e8b4f",
                      "title": "Pearson",
                      "value": "pearson"
                    },
                    {
                      "id": "eb3a74d3bc63b01b302485b02bafe2b1",
                      "moduleParamId": "8fce4f29931dd0498de20132526e8b4f",
                      "title": "Kendall",
                      "value": "kendall"
                    }
                  ],
                  "validation": {
                    "id": "073b8cdb3203f61b49f8bc90e3a40df4",
                    "moduleParamId": "8fce4f29931dd0498de20132526e8b4f",
                    "subType": "float",
                    "columnType": "object"
                  },
                  "disableCondition": {
                    "id": "7e44ba5c1c84e6784f2ec34d7e6b9076",
                    "moduleParamId": "8fce4f29931dd0498de20132526e8b4f",
                    "type": "0"
                  }
                }
              ],
              "commitInfo": {
                "id": "98898861c627e6e5e1a0e5a2fe473155",
                "moduleVersionId": "98f95541b8b8762a0460dd13956fc241",
                "message": "Init Commit",
                "date": "2022-06-22 14:46:19",
                "committer": "1"
              }
            }
          ]
        },
        "triggerType": null,
        "targetUnit": null,
        "statusUnit": null,
        "targetArea": null,
        "situationTime": null,
        "countdown": null,
        "selectTime": null
      },
      "myId": "72e2c36a6b01ba7efe570e71809b2057",
      "ports": {
        "groups": {
          "in": {
            "position": "top",
            "attrs": {
              "circle": {
                "r": 6,
                "magnet": "passive",
                "fill": "#C0C4CC",
                "fillOpacity": "0.15",
                "stroke": "#C0C4CC",
                "strokeOpacity": "0.6",
                "strokeWidth": 1,
                "style": {
                  "visibility": "visible"
                }
              }
            }
          },
          "out": {
            "position": "bottom",
            "attrs": {
              "circle": {
                "r": 6,
                "magnet": true,
                "fill": "#C0C4CC",
                "fillOpacity": "0.15",
                "stroke": "#C0C4CC",
                "strokeOpacity": "0.6",
                "strokeWidth": 1,
                "style": {
                  "visibility": "visible"
                }
              }
            }
          }
        },
        "items": [
          {
            "id": "ceb5a2ec7d6df9ed9a7428bd44ebee02",
            "moduleId": "72e2c36a6b01ba7efe570e71809b2057",
            "optional": false,
            "type": "DataFrame",
            "description": "Input:DataFrame",
            "group": "in",
            "myId": "ceb5a2ec7d6df9ed9a7428bd44ebee02"
          },
          {
            "id": "70b08f7ced96c095d5c1ad34f5aa83d8",
            "moduleId": "72e2c36a6b01ba7efe570e71809b2057",
            "type": "DataFrame",
            "description": "Output:DataFrame",
            "group": "out",
            "myId": "70b08f7ced96c095d5c1ad34f5aa83d8"
          }
        ]
      },
      "zIndex": 2
    },
    {
      "position": {
        "x": 310,
        "y": 205
      },
      "size": {
        "width": 140,
        "height": 40
      },
      "shape": "text_analysis50",
      "value": "text_analysis50",
      "id": "506820e5-fc04-4fa3-8c8f-93ab42406175",
      "data": {
        "id": "6d0920488383cb8aa8b52857a653feb7",
        "category": "text_analysis",
        "name": "文本预处理",
        "ports": {
          "in": [
            {
              "id": "d412c3828d81156d41a750ec1f67094a",
              "moduleId": "6d0920488383cb8aa8b52857a653feb7",
              "optional": false,
              "type": "DataFrame"
            }
          ],
          "out": [
            {
              "id": "ce3fb060c868496c6b0a0981191a20f6",
              "moduleId": "6d0920488383cb8aa8b52857a653feb7",
              "type": "DataFrame"
            }
          ]
        },
        "isOfficial": true,
        "language": "python",
        "currentVersion": "998f1ca5834bf072ccd2f20563592a9f",
        "createUserId": "1",
        "createDate": "2022-06-22 14:46:20",
        "updateDate": "2022-06-22 14:46:20",
        "versions": [
          {
            "id": "998f1ca5834bf072ccd2f20563592a9f",
            "moduleId": "6d0920488383cb8aa8b52857a653feb7",
            "code": "import re\n\nfor i in range(in_1.shape[0]):\n    text = in_1.iloc[i][\"{{content}}\"]\n    #if {{delNonChinese}}:\n        #text = re.sub(r'[^\\u4e00-\\u9fa5]','',text)\n{% if delDigit == \"True\" %}\n    text = re.sub(r\"[0-9]+\",'',text)\n{% endif %}\n{% if delURL == \"True\" %}\n    text = re.sub(r'(https?|file|ftp://)?[-A-Za-z0-9+&@#/%?=~_\\|!:,.;]+[!:,.;][-A-Za-z0-9+&@#/%=~_\\|]+','',text)\n{% endif %}\n{% if delEmail == \"True\" %}\n    text = re.sub(r\"[a-zA-Z0-9]+@[a-zA-Z0-9]+(\\.[a-zA-Z0-9]+)+\",'',text)\n{% endif %}\n{% if delSpace == \"True\" %}\n    text = re.sub(r\"[ ]+\",'',text)\n{% endif %}\n    in_1.iloc[i][\"{{content}}\"] = text\n\nreturn [in_1]",
            "paramList": [
              {
                "id": "8db700782cbba7a93ea8535c1be079f4",
                "moduleVersionId": "998f1ca5834bf072ccd2f20563592a9f",
                "name": "content",
                "multiple": false,
                "optional": false,
                "displayName": "选择文本列",
                "type": "array",
                "defaultValue": "content",
                "options": [],
                "validation": {
                  "id": "cc409a6deb6749759b817273e004bec0",
                  "moduleParamId": "8db700782cbba7a93ea8535c1be079f4",
                  "subType": "float"
                },
                "port": "in_1"
              },
              {
                "id": "8f5a0d9d2b04daf09e5def082b805c36",
                "moduleVersionId": "998f1ca5834bf072ccd2f20563592a9f",
                "name": "delURL",
                "multiple": false,
                "optional": false,
                "displayName": "剔除网址",
                "type": "checkbox",
                "defaultValue": "False",
                "options": [],
                "validation": {
                  "id": "67032036e2aaa7a7fed8bc1e748d3c7f",
                  "moduleParamId": "8f5a0d9d2b04daf09e5def082b805c36",
                  "subType": "float"
                }
              },
              {
                "id": "9010a76b0c071e4cac3a8b8ae4b8533e",
                "moduleVersionId": "998f1ca5834bf072ccd2f20563592a9f",
                "name": "delEmail",
                "multiple": false,
                "optional": false,
                "displayName": "剔除email地址",
                "type": "checkbox",
                "defaultValue": "False",
                "options": [],
                "validation": {
                  "id": "ffefce74bc0829e0ce18e4aae4a56928",
                  "moduleParamId": "9010a76b0c071e4cac3a8b8ae4b8533e",
                  "subType": "float"
                }
              },
              {
                "id": "98d6cbef865dd5e6b4693f66b081ee5d",
                "moduleVersionId": "998f1ca5834bf072ccd2f20563592a9f",
                "name": "delSpace",
                "multiple": false,
                "optional": false,
                "displayName": "剔除空格",
                "type": "checkbox",
                "defaultValue": "False",
                "options": [],
                "validation": {
                  "id": "84ac500c56cf4f889078afd20501e188",
                  "moduleParamId": "98d6cbef865dd5e6b4693f66b081ee5d",
                  "subType": "float"
                }
              },
              {
                "id": "e6275d22c08ed1c022d10af8d6a3c03f",
                "moduleVersionId": "998f1ca5834bf072ccd2f20563592a9f",
                "name": "delDigit",
                "multiple": false,
                "optional": false,
                "displayName": "剔除数字",
                "type": "checkbox",
                "defaultValue": "False",
                "options": [],
                "validation": {
                  "id": "27978a5e34ddef47f22a1efbda533363",
                  "moduleParamId": "e6275d22c08ed1c022d10af8d6a3c03f",
                  "subType": "float"
                }
              }
            ],
            "commitInfo": {
              "id": "839860fdf71a813cf6e2678beb964562",
              "moduleVersionId": "998f1ca5834bf072ccd2f20563592a9f",
              "message": "Init Commit",
              "date": "2022-06-22 14:46:20",
              "committer": "1"
            }
          }
        ],
        "description": "",
        "data": {
          "id": "6d0920488383cb8aa8b52857a653feb7",
          "category": "text_analysis",
          "name": "文本预处理",
          "ports": {
            "in": [
              {
                "id": "d412c3828d81156d41a750ec1f67094a",
                "moduleId": "6d0920488383cb8aa8b52857a653feb7",
                "optional": false,
                "type": "DataFrame"
              }
            ],
            "out": [
              {
                "id": "ce3fb060c868496c6b0a0981191a20f6",
                "moduleId": "6d0920488383cb8aa8b52857a653feb7",
                "type": "DataFrame"
              }
            ]
          },
          "isOfficial": true,
          "language": "python",
          "currentVersion": "998f1ca5834bf072ccd2f20563592a9f",
          "createUserId": "1",
          "createDate": "2022-06-22 14:46:20",
          "updateDate": "2022-06-22 14:46:20",
          "versions": [
            {
              "id": "998f1ca5834bf072ccd2f20563592a9f",
              "moduleId": "6d0920488383cb8aa8b52857a653feb7",
              "code": "import re\n\nfor i in range(in_1.shape[0]):\n    text = in_1.iloc[i][\"{{content}}\"]\n    #if {{delNonChinese}}:\n        #text = re.sub(r'[^\\u4e00-\\u9fa5]','',text)\n{% if delDigit == \"True\" %}\n    text = re.sub(r\"[0-9]+\",'',text)\n{% endif %}\n{% if delURL == \"True\" %}\n    text = re.sub(r'(https?|file|ftp://)?[-A-Za-z0-9+&@#/%?=~_\\|!:,.;]+[!:,.;][-A-Za-z0-9+&@#/%=~_\\|]+','',text)\n{% endif %}\n{% if delEmail == \"True\" %}\n    text = re.sub(r\"[a-zA-Z0-9]+@[a-zA-Z0-9]+(\\.[a-zA-Z0-9]+)+\",'',text)\n{% endif %}\n{% if delSpace == \"True\" %}\n    text = re.sub(r\"[ ]+\",'',text)\n{% endif %}\n    in_1.iloc[i][\"{{content}}\"] = text\n\nreturn [in_1]",
              "paramList": [
                {
                  "id": "8db700782cbba7a93ea8535c1be079f4",
                  "moduleVersionId": "998f1ca5834bf072ccd2f20563592a9f",
                  "name": "content",
                  "multiple": false,
                  "optional": false,
                  "displayName": "选择文本列",
                  "type": "array",
                  "defaultValue": "content",
                  "options": [],
                  "validation": {
                    "id": "cc409a6deb6749759b817273e004bec0",
                    "moduleParamId": "8db700782cbba7a93ea8535c1be079f4",
                    "subType": "float"
                  },
                  "port": "in_1"
                },
                {
                  "id": "8f5a0d9d2b04daf09e5def082b805c36",
                  "moduleVersionId": "998f1ca5834bf072ccd2f20563592a9f",
                  "name": "delURL",
                  "multiple": false,
                  "optional": false,
                  "displayName": "剔除网址",
                  "type": "checkbox",
                  "defaultValue": "False",
                  "options": [],
                  "validation": {
                    "id": "67032036e2aaa7a7fed8bc1e748d3c7f",
                    "moduleParamId": "8f5a0d9d2b04daf09e5def082b805c36",
                    "subType": "float"
                  }
                },
                {
                  "id": "9010a76b0c071e4cac3a8b8ae4b8533e",
                  "moduleVersionId": "998f1ca5834bf072ccd2f20563592a9f",
                  "name": "delEmail",
                  "multiple": false,
                  "optional": false,
                  "displayName": "剔除email地址",
                  "type": "checkbox",
                  "defaultValue": "False",
                  "options": [],
                  "validation": {
                    "id": "ffefce74bc0829e0ce18e4aae4a56928",
                    "moduleParamId": "9010a76b0c071e4cac3a8b8ae4b8533e",
                    "subType": "float"
                  }
                },
                {
                  "id": "98d6cbef865dd5e6b4693f66b081ee5d",
                  "moduleVersionId": "998f1ca5834bf072ccd2f20563592a9f",
                  "name": "delSpace",
                  "multiple": false,
                  "optional": false,
                  "displayName": "剔除空格",
                  "type": "checkbox",
                  "defaultValue": "False",
                  "options": [],
                  "validation": {
                    "id": "84ac500c56cf4f889078afd20501e188",
                    "moduleParamId": "98d6cbef865dd5e6b4693f66b081ee5d",
                    "subType": "float"
                  }
                },
                {
                  "id": "e6275d22c08ed1c022d10af8d6a3c03f",
                  "moduleVersionId": "998f1ca5834bf072ccd2f20563592a9f",
                  "name": "delDigit",
                  "multiple": false,
                  "optional": false,
                  "displayName": "剔除数字",
                  "type": "checkbox",
                  "defaultValue": "False",
                  "options": [],
                  "validation": {
                    "id": "27978a5e34ddef47f22a1efbda533363",
                    "moduleParamId": "e6275d22c08ed1c022d10af8d6a3c03f",
                    "subType": "float"
                  }
                }
              ],
              "commitInfo": {
                "id": "839860fdf71a813cf6e2678beb964562",
                "moduleVersionId": "998f1ca5834bf072ccd2f20563592a9f",
                "message": "Init Commit",
                "date": "2022-06-22 14:46:20",
                "committer": "1"
              }
            }
          ]
        },
        "triggerType": null,
        "targetUnit": null,
        "statusUnit": null,
        "targetArea": null,
        "situationTime": null,
        "countdown": null,
        "selectTime": null
      },
      "myId": "6d0920488383cb8aa8b52857a653feb7",
      "ports": {
        "groups": {
          "in": {
            "position": "top",
            "attrs": {
              "circle": {
                "r": 6,
                "magnet": "passive",
                "fill": "#C0C4CC",
                "fillOpacity": "0.15",
                "stroke": "#C0C4CC",
                "strokeOpacity": "0.6",
                "strokeWidth": 1,
                "style": {
                  "visibility": "visible"
                }
              }
            }
          },
          "out": {
            "position": "bottom",
            "attrs": {
              "circle": {
                "r": 6,
                "magnet": true,
                "fill": "#C0C4CC",
                "fillOpacity": "0.15",
                "stroke": "#C0C4CC",
                "strokeOpacity": "0.6",
                "strokeWidth": 1,
                "style": {
                  "visibility": "visible"
                }
              }
            }
          }
        },
        "items": [
          {
            "id": "d412c3828d81156d41a750ec1f67094a",
            "moduleId": "6d0920488383cb8aa8b52857a653feb7",
            "optional": false,
            "type": "DataFrame",
            "group": "in",
            "myId": "d412c3828d81156d41a750ec1f67094a"
          },
          {
            "id": "ce3fb060c868496c6b0a0981191a20f6",
            "moduleId": "6d0920488383cb8aa8b52857a653feb7",
            "type": "DataFrame",
            "group": "out",
            "myId": "ce3fb060c868496c6b0a0981191a20f6"
          }
        ]
      },
      "zIndex": 3
    }
  ]
}
